<%@ Control Language="c#" Inherits="Portal.Modules.AdminUsers.UserEdit" CodeBehind="UserEdit.ascx.cs" %>
<%@ Import Namespace="System.Data" %>
<p>
	<portal:LinkButton ID="lnkBack" OnClick="OnBack" runat="server" LanguageRef="Back"
		CssClass="linkButton" />
	<portal:LinkButton ID="lnkSave" OnClick="OnSave" runat="server" LanguageRef="Save"
		CssClass="linkButton" />
	<portal:LinkButton ID="lnkDelete" OnClick="OnDelete" runat="server" LanguageRef="Delete"
		CssClass="linkButton" />
	<asp:TextBox Visible="False" ID="txtUserId" runat="server" />
</p>
<table>
	<tr>
		<td class="Label" width="150">
			<portal:Label runat="server" LanguageRef="Account"></portal:Label>
		</td>
		<td class="Data">
			<asp:TextBox Width="100%" ID="txtLogin" runat="server"></asp:TextBox>
		</td>
	</tr>
	<tr>
		<td class="Label">
			<portal:Label runat="server" LanguageRef="Password" ID="Label1" NAME="Label1"></portal:Label>
		</td>
		<td class="Data">
			<asp:TextBox Width="100%" ID="txtPassword" runat="server"></asp:TextBox>
		</td>
	</tr>
	<tr>
		<td class="Label" nowrap>
			<portal:Label runat="server" LanguageRef="FirstName" ID="Label2" NAME="Label2"></portal:Label>
		</td>
		<td class="Data">
			<asp:TextBox Width="100%" ID="txtFirstName" runat="server"></asp:TextBox>
		</td>
	</tr>
	<tr>
		<td class="Label" nowrap>
			<portal:Label runat="server" LanguageRef="SurName" ID="Label3" NAME="Label3"></portal:Label>
		</td>
		<td class="Data">
			<asp:TextBox Width="100%" ID="txtSurName" runat="server"></asp:TextBox>
		</td>
	</tr>
	<tr>
		<td class="Label" nowrap>
			<portal:Label runat="server" LanguageRef="EMail" ID="Label4" NAME="Label3"></portal:Label>
		</td>
		<td class="Data">
			<asp:TextBox Width="100%" ID="txtEMail" runat="server"></asp:TextBox>
		</td>
	</tr>
</table>
<portal:DataGrid ID="gridRoles" runat="server" AutoGenerateColumns="false">
	<Columns>
		<portal:TemplateColumn LanguageRef-HeaderText="Select" HeaderStyle-CssClass="w3">
			<ItemTemplate>
				<asp:CheckBox runat="server" ID="chkRole" Checked="<%#HasRole((DataRowView)Container.DataItem)%>" />
			</ItemTemplate>
		</portal:TemplateColumn>
		<portal:BoundColumn DataField="name" LanguageRef-HeaderText="Role" />
	</Columns>
</portal:DataGrid> 